package com.youlai.boot.system.converter;

import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.system.model.entity.Transaction;
import com.youlai.boot.system.model.form.TransactionForm;

/**
 * 交易记录表对象转换器
 *
 * @author youlaitech
 * @since 2025-02-27 15:58
 */
@Mapper(componentModel = "spring")
public interface TransactionConverter{

    TransactionForm toForm(Transaction entity);

    Transaction toEntity(TransactionForm formData);
}